import request from '@/utils/request'
export function annualPanList(data) { //维修管理-主体信息-分页查询
    return request({
        url: '/maintenance-management/api/maintenance/repairInfo/page',
        method: 'post',
        data
    })
}
export function annualPanCommit(data) { //维修管理-提交审批
    return request({
        url: '/maintenance-management/api/process/audit/commit',
        method: 'post',
        data
    })
}
//原 del
export function annualPanDelete(id) { //维修管理-主体信息-删除
    return request({
        url: '/maintenance-management/api/maintenance/repairInfo/del/' + id,
        method: 'get',
    })
}

export function annualPanListAll(id) { //维修管理-主体信息-查询全部审核通过的
    return request({
        url: '/maintenance-management/api/maintenance/repairInfo/all/'+id,
        method: 'get',
    })
}
//临时计划
export function temporaryPlanList(data) { //维修管理-临时计划-列表
    return request({
        url: '/maintenance-management/api/repairInfoLs/page',
        method: 'post',
        data
    })
}
export function temporaryPlanDelete(id) { //维修管理-临时计划-删除
    return request({
        url: '/maintenance-management/api/repairInfoLs/del/' + id,
        method: 'get',
    })
}
export function facilitiesExport(id) { //导出
    return request({
        url: '/maintenance-management/api/maintenance/repairInfo/export/' + id,
        responseType: 'arraybuffer',
        method: 'get',
    })
} 
export function facilitiesExport2(data) { //年度计划审批表
    return request({
        url: '/maintenance-management/api/maintenance/repairInfo/detail/export',
        responseType: 'arraybuffer',
        method: 'post',
        data
    })
} 


export function temporaryPlanExport(id) { //维修管理-临时计划-导出
    return request({
        url: '/maintenance-management/api/repairInfoLs/export/'+id,
        responseType: 'arraybuffer',
        method: 'get',
    })
}
export function temporaryPlanRecall(data) { //审批-撤回
    return request({
        url: '/maintenance-management/api/process/audit/recall',
        method: 'post',
        data
    })
}

